package com.groupbuying.cheetah.utils;

import org.apache.commons.collections4.MapUtils;

import java.util.Map;

public class SettleParamsCheckUtils {
    public static boolean checkMainSettleParams(Map<String,Object> params){
        if(MapUtils.isEmpty(params)){
            return false;
        }
        if(null == params.get("orderId")){
            return false;
        }
        if(null == params.get("outTradeNo")){
            return false;
        }
        if(null == params.get("counterId")){
            return false;
        }
        if(null == params.get("customerId")){
            return false;
        }
        if(null == params.get("totalAmount")){
            return false;
        }
        if(null == params.get("settleType")){
            return false;
        }
        if(null == params.get("payChannel")){
            return false;
        }
        if(null == params.get("payType")){
            return false;
        }
        return true;
    }
}
